package cn.sirun.com.fca.account.model.register;


import cn.sirun.com.fca.account.model.login.LoginResponse;

/**
 * @author vinsonhuang
 * @date 2018/8/27
 */
public class RegisterSubmitResponse extends LoginResponse {

    /**
     * bcrypt用的盐
     */
    private String salt;

    /**
     * srp协议使用的group
     */
    private String group;

    public RegisterSubmitResponse() {
    }

    public RegisterSubmitResponse(int appId, String identifier, String userSig, int accType,
                                  String salt, String group) {
        super(appId, identifier, userSig, accType);
        this.salt = salt;
        this.group = group;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    @Override
    public String toString() {
        return "RegisterSubmitResponse{" +
                "salt='" + salt + '\'' +
                ", group='" + group + '\'' +
                ", appId=" + appId +
                ", identifier='" + identifier + '\'' +
                ", userSig='" + userSig + '\'' +
                ", accType=" + accType +
                '}';
    }
}
